package defi4;


public class CoupleChar implements java.lang.Comparable {
	
	public Character char1, char2;
	
	public Boolean ok;
	
	public CoupleChar(Character c1, Character c2) {
		char1 = c1;
		char2 = c2;
		ok=false;
	}

	@Override
	public boolean equals(Object cc) {
		CoupleChar ccT = (CoupleChar)cc;
		return char1.equals(ccT.char1) && char2.equals(ccT.char2);
	}
	
	public String toString() {
		return "<" + char1.toString() + "," + char2.toString() + ">"; 
	}
	
	@Override
	public int compareTo(Object cc) {
		CoupleChar ccT = (CoupleChar)cc;
		return char1.compareTo(ccT.char1);
	}

	/**
	 * Getter pour ok.
	 *
	 * @return the ok
	 */
	public Boolean getOk() {
		return ok;
	}

	/**
	 * Setter pour ok.
	 *
	 * @param ok the ok to set
	 */
	public void setOk(Boolean ok) {
		this.ok = ok;
	}
	
	

}
